package com.winter.main.service.system.impl;

import com.winter.main.mapper.master.system.SysRoleMapper;
import com.winter.main.model.entity.SysRole;
import com.winter.main.model.entity.SysUser;
import com.winter.main.service.system.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Desc:
 * Author: dushuang
 * Date: Create in 2018/4/18
 */
@Service
public class SysRoleServiceImpl implements SysRoleService {

    @Autowired
    private SysRoleMapper roleMapper;

    @Override
    public List<SysRole> selectRoleByUser(SysUser user) throws Exception {
        return roleMapper.selectRoleByUser(user);
    }
}
